package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.RcOrderCommissionMapper;
import com.ktgj.other.domain.RcOrderCommission;
import com.ktgj.other.service.IRcOrderCommissionService;

/**
 * 专车订单佣金Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
public class RcOrderCommissionServiceImpl implements IRcOrderCommissionService 
{
    @Autowired
    private RcOrderCommissionMapper rcOrderCommissionMapper;

    /**
     * 查询专车订单佣金
     * 
     * @param rcordercommissionid 专车订单佣金ID
     * @return 专车订单佣金
     */
    @Override
    public RcOrderCommission selectRcOrderCommissionById(Long rcordercommissionid)
    {
        return rcOrderCommissionMapper.selectRcOrderCommissionById(rcordercommissionid);
    }

    /**
     * 查询专车订单佣金列表
     * 
     * @param rcOrderCommission 专车订单佣金
     * @return 专车订单佣金
     */
    @Override
    public List<RcOrderCommission> selectRcOrderCommissionList(RcOrderCommission rcOrderCommission)
    {
        return rcOrderCommissionMapper.selectRcOrderCommissionList(rcOrderCommission);
    }

    /**
     * 新增专车订单佣金
     * 
     * @param rcOrderCommission 专车订单佣金
     * @return 结果
     */
    @Override
    public int insertRcOrderCommission(RcOrderCommission rcOrderCommission)
    {
        return rcOrderCommissionMapper.insertRcOrderCommission(rcOrderCommission);
    }

    /**
     * 修改专车订单佣金
     * 
     * @param rcOrderCommission 专车订单佣金
     * @return 结果
     */
    @Override
    public int updateRcOrderCommission(RcOrderCommission rcOrderCommission)
    {
        return rcOrderCommissionMapper.updateRcOrderCommission(rcOrderCommission);
    }

    /**
     * 批量删除专车订单佣金
     * 
     * @param rcordercommissionids 需要删除的专车订单佣金ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderCommissionByIds(Long[] rcordercommissionids)
    {
        return rcOrderCommissionMapper.deleteRcOrderCommissionByIds(rcordercommissionids);
    }

    /**
     * 删除专车订单佣金信息
     * 
     * @param rcordercommissionid 专车订单佣金ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderCommissionById(Long rcordercommissionid)
    {
        return rcOrderCommissionMapper.deleteRcOrderCommissionById(rcordercommissionid);
    }
}
